import request from '@/utils/request'

/**
 * 登录接口
 * @param {*} userId 账号
 * @param {*} userPassword 密码
 * @returns 
 */
export const login = function(userId, userPassword) {
    return request({
        method: 'post',
        url: '/UserManage/login',
        data: {
            userId,
            userPassword
        }
    })
}

/**
 * 退出登录
 * @returns 
 */
export const logout = function() {
    return request({
        method: 'get',
        url: '/UserManage/logout',
    })
}